<#import "/common/function.ftl" as fn>
<@fn.header _title="">
<script type="text/javascript" src="${base}/resources/script/jquery.pager.js"></script>
</@fn.header>
<script language="javascript">
function deleteRecord(id)
{
	if(confirm('删除操作可能影响已经发生的业务，确定要删除？'))
	{
		window.location.href = "delete?id=" + id;
	}
}
</script>
<body style="width:100%" class="list">
<form id="listForm" action="list" method="post">
	<h2><img src="${base}/resources/style/images/iconDivM.gif" width="16" height="16" />标准管理</h2>
	<div class="title marginTop15">
		<div class="title-middle">
			<div class="title-left"></div>
			<div class="title-caption">
				<label style="font-weight:bold;">名称: </label>
				<input type="hidden" name="propertyList" value="name"/>
				<input type="hidden" name="compareTypeList" value="like"/>
				<input type="text" name="keywordList" value="${(pager.keywordList[0])!}" />
				<input type="submit" id="searchButton" class="button" value="搜 索" />
			</div>
            <div class="title-right">
            	<img src="${base}/resources/style/images/action_add.gif" width="16" height="16" /><a href="#" onclick="location.href='add'">添加标准</a>
            </div>
		</div>
	</div>
	<table class="table2" id="userListTable">
		<tr>
			<th>标准名称</th>
			<th>标准有效期</th>
			<th>是否有户籍要求</th>
			<th>户籍要求内容</th>
			<th>人均居住面积</th>
			<th>人均月收入</th>
			<th>人均可支配财产</th>
			<th>添加时间</th>
			<th>修改时间</th>
			<th>操作人</th>
			<th>操作</th>
		</tr>
		<#list pager.result as criterion>
		<tr>
			<td>
				${criterion.name}
			</td>
			<td>
				${criterion.fromDate} - ${criterion.toDate}
			</td>
			<td>
				${criterion.domicileLimit}
			</td>
			<td>
				${criterion.domicile}
			</td>
			<td>
				${criterion.avgArea}
			</td>
			<td>
				${criterion.avgIncome}
			</td>
			<td>
				${criterion.avgProperty}
			</td>
			<td>
				${criterion.createDate}
			</td>
			<td>
				${criterion.modifyDate}
			</td>
			<td>
				${criterion.operator}
			</td>
			<td>
				<a href="detail?id=${criterion.id}" title="详情">[详情]</a>
				<a onclick="deleteRecord('${criterion.id}')" style="cursor:pointer" title="删除">[删除]</a>
			</td>
		</tr>
		</#list>
	</table>
	<@fn.pagerCode />
</form>
</body>
</html>